
/* flex布局 */
.flex {
	display: flex;
}

.flex-middle {
	display: flex;
	align-items: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.inline-flex {
	display: inline-flex;
}

/* 自适应剩余空间 */
.flex-width {
	flex: 1;
	min-width: 0;
}

.flex-height {
	flex: 1;
	min-height: 0;
}

/* 自动换行 */
.flex-wrap {
	flex-wrap: wrap;
}

/* 让元素沿着容器主轴的中心点和交叉轴中心对齐 */
.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}
.flex-around {
	display: flex;
	align-items: center;
	justify-content: space-around;
}
/* 沿垂直方向放置 flex 子项 */
.flex-col {
	flex-direction: column;
}

/* 让元素沿着容器主轴排列，并使每个元素之间的距离相等 */
.justify-between {
	justify-content: space-between;
}

/* 让元素沿着容器主轴的中心点对齐 */
.justify-center {
	justify-content: center;
}

/* 让元素沿着容器主轴排列，并使每个元素两侧的距离相等。 */
.justify-around {
	justify-content: space-around;
}

/* 让元素沿着容器主轴的结束点对齐 */
.justify-end {
	justify-content: flex-end;
}
.justify-start {
	display: flex;
	justify-content: flex-start;
	
}
.justify-start-center {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	
}
/* 将元素沿着容器交叉轴的起点对齐 */
.items-start {
	align-items: flex-start;
}

/* 将元素沿着容器交叉轴的终点对齐 */
.items-end {
	align-items: flex-end;
}

/* 沿着容器的交叉轴中心对齐元素 */
.items-center {
	align-items: center;
}

/* 文字单行省略 */
.text-ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.fixed_button{
	// margin: 0rpx 30rpx;
	font-weight: 700;
	font-size: 32rpx;
	text-align: center;
	color: #222;
	position: fixed;
	width: 93vw;
	bottom: 40rpx;
}
/* 文字多行省略 */
@mixin multi-ellipsis($clamp) {
  display: -webkit-box;
  -webkit-line-clamp: $clamp;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
//两行省略
.much-ell-two{
	overflow: hidden;
	text-overflow: ellipsis; 
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}
// 自适应正方形
.square-box {
	position: relative;
	&:after {
		content: '';
		display: block;
		padding-bottom: 100%;
	}

	// 图片自适应
	.thumb {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
}